import Vue from 'vue';
import VueRouter from 'vue-router';

// 路由
import AppTabbarRoute from './modules/appTabbar';
import MyCenterRoute from './modules/myCenter';
import OrderRoute from './modules/order';
import PhotoAlbumRoute from './modules/photoAlbum';
import PhotoTableRoute from './modules/photoTable';
//

import CottonRoute from './modules/cottonIn';

Vue.use(VueRouter);

const routes = [
  {
    path: '/test',
    component: () => import('@/views/Home.vue'),
    name: 'HomeTest',
    meta: { title: 'HomeTest' },
  },
  AppTabbarRoute,
  MyCenterRoute,
  OrderRoute,
  PhotoAlbumRoute,
  PhotoTableRoute,
].concat(CottonRoute);

const router = new VueRouter({
  routes,
});

export default router;
